package com.tudouji.project.d3.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.d3.mapper.D3OrderTodoMapper;
import com.tudouji.project.d3.domain.D3OrderTodo;
import com.tudouji.project.d3.service.ID3OrderTodoService;

/**
 * 待处理D3Service业务层处理
 * 
 * @author tudouji
 * @date 2023-04-14
 */
@Service
public class D3OrderTodoServiceImpl implements ID3OrderTodoService 
{
    @Autowired
    private D3OrderTodoMapper d3OrderTodoMapper;

    /**
     * 查询待处理D3
     * 
     * @param id 待处理D3ID
     * @return 待处理D3
     */
    @Override
    public D3OrderTodo selectD3OrderTodoById(Long id)
    {
        return d3OrderTodoMapper.selectD3OrderTodoById(id);
    }

    /**
     * 查询待处理D3列表
     * 
     * @param d3OrderTodo 待处理D3
     * @return 待处理D3
     */
    @Override
    public List<D3OrderTodo> selectD3OrderTodoList(D3OrderTodo d3OrderTodo)
    {
        return d3OrderTodoMapper.selectD3OrderTodoList(d3OrderTodo);
    }

    /**
     * 新增待处理D3
     * 
     * @param d3OrderTodo 待处理D3
     * @return 结果
     */
    @Override
    public int insertD3OrderTodo(D3OrderTodo d3OrderTodo)
    {
        return d3OrderTodoMapper.insertD3OrderTodo(d3OrderTodo);
    }

    /**
     * 修改待处理D3
     * 
     * @param d3OrderTodo 待处理D3
     * @return 结果
     */
    @Override
    public int updateD3OrderTodo(D3OrderTodo d3OrderTodo)
    {
        return d3OrderTodoMapper.updateD3OrderTodo(d3OrderTodo);
    }

    /**
     * 批量删除待处理D3
     * 
     * @param ids 需要删除的待处理D3ID
     * @return 结果
     */
    @Override
    public int deleteD3OrderTodoByIds(Long[] ids)
    {
        return d3OrderTodoMapper.deleteD3OrderTodoByIds(ids);
    }

    /**
     * 删除待处理D3信息
     * 
     * @param id 待处理D3ID
     * @return 结果
     */
    @Override
    public int deleteD3OrderTodoById(Long id)
    {
        return d3OrderTodoMapper.deleteD3OrderTodoById(id);
    }
}
